package com.ljx.thread.thread01;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2022/10/31 9:44
 * @Version 1.0
 */
public class MyThread extends Thread{
	// 使用构造方法为线程起名字
	public MyThread(String name){
		super(name);
	}

	/**
	 *
	 */
	@Override
	public void run() {
		for (int i = 0; i < 20; i++) {
			System.out.println(this.getName()+"线程执行=======>"+i);
		}

	}
}
